<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$php_version = phpversion();
$server_software = $_SERVER["SERVER_SOFTWARE"];
$ip_server = $_SERVER['SERVER_ADDR'];

$this->smarty->assign('server_software', $server_software);
$this->smarty->assign('php_version', $php_version);
$this->smarty->assign('ip_server', $ip_server);


$attributes = array('class' => 'block-content form', 'id' => 'simple_form');
$this->smarty->assign('attributes', $attributes);

$user = $this->login_manager->get_user();

$this->smarty->assign('user', $user);
//redirect https
// if(!(
// 	(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=="on")
// 	||(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO']=="https" )
// )){
// 	header("location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
// }